<template>
  <div>
<!--把一个网页分为24等份-->
    <el-row gutter="20">
      <el-col :span="6">
        <div style="width: 100%; height: 300px; background-color: #2c3e50"></div>
      </el-col>
      <el-col :span="6">
        <div style="width: 100%; height: 300px; background-color: dodgerblue"></div>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="24">
        <button>按钮</button>
        <el-button>ele</el-button>
        <el-button type="primary">ele</el-button>
        <el-button type="danger">ele</el-button>
      </el-col>
    </el-row>

    <el-container>
      <!--      100vh就是让左侧边栏占用整个浏览器100%的高度-->
      <el-aside style="width: 200px; min-height: 100vh; background-color: #001529">
<!--        background-color: antiquewhite;-->
        <div style="height: 60px;line-height: 60px; display: flex; align-items: center; justify-content: center">
          logo
        </div>


        <el-menu router="false" style="border: none" :default-active="$route.path">
          <!--          只有一级菜单index属性才会生效高亮-->
          <el-menu-item index="/">
            <template slot="title">
              <i class="el-icon-house"></i>
              <span>首页管理</span>
            </template>
          </el-menu-item>
          <el-menu-item index="/ele">系统首页</el-menu-item>
          <el-menu-item>系统首页</el-menu-item>
          <el-submenu>
            <template slot="title">
              <i class="el-icon-menu"></i>
              <span>二级菜单管理</span>
            </template>
            <el-menu-item>二级菜单</el-menu-item>
            <el-menu-item>二级菜单</el-menu-item>
            <el-menu-item>二级菜单</el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>
        <el-header>

        </el-header>

        <el-main>

        </el-main>
      </el-container>
    </el-container>

  </div>

</template>

<script>
export default {
  name: "Element"
}
</script>

<style scoped>

</style>